package com.jyw.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.FieldNameConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jyw.common.annotation.Excel;
import com.jyw.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 用户和部门关联对象 sys_user_dept
 * 
 * @author system
 * @date 2023-08-09
 */
@Data
@TableName("sys_user_dept")
@ApiModel("用户和部门关联实体")
@FieldNameConstants
public class SysUserDept
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户主键 */
    @ApiModelProperty("用户主键")
    @Excel(name = "用户主键")
    private Long userId;

    /** 部门主键 */
    @ApiModelProperty("部门主键")
    @Excel(name = "部门主键")
    private Long deptId;

    @ApiModelProperty("是否默认部门 1是 0否")
    private Integer isDefault;

}
